Skip to content

Add netstandard2.0 compatibility - #21

Open
rabbitism wants to merge 4 commits into
mainfrom
feature/netstandard2.0
Open

Add netstandard2.0 compatibility#21
rabbitism wants to merge 4 commits into
mainfrom
feature/netstandard2.0

Conversation

@rabbitism

Copy link
Copy Markdown
Member

No description provided.

- Add netstandard2.0 to TargetFrameworks
- Condition IsAotCompatible/IsTrimmable for net8.0+
- Add LangVersion latest
- Condition System.Memory package for netstandard2.0
- Add IsExternalInit polyfill for netstandard2.0
- Add RequiresUnreferencedCodeAttribute polyfill for netstandard2.0
- Guard DateOnly/TimeOnly converters with #if NET8_0_OR_GREATER
- Fix SerializeToStreamAsync: extract SerializeCoreAsync, guard 3-param override
- Add System.Index/Range polyfill for ^ and .. syntax
- Add CallerArgumentExpression polyfill
- Add NotNullAttribute polyfill
- Add ThrowHelper to replace ArgumentNullException.ThrowIfNull
- Add System.ValueTuple package for netstandard2.0
- Fix Array.Fill with for-loop on netstandard2.0
- Add EncodingPolyfill (GetUtf8String/GetUtf8Bytes for Span APIs)
- Add PolyfillArrayBufferWriter (replaces ArrayBufferWriter<T>)
- Add MemoryMarshalShim (replaces MemoryMarshal.CreateSpan)
- Add StreamPolyfill (WriteAsync/ReadAsync Memory overloads)
- Add KvpExtensions (Deconstruct for KeyValuePair)
- Fix Enum.Parse<T> -> (T)Enum.Parse(typeof(T),...)
- Fix Type.IsAssignableTo -> IsAssignableFrom
- Fix HashCode.Combine -> manual hash
- Fix ConcurrentDictionary.GetOrAdd 3-arg -> closure
- Fix decimal.TryFormat -> ToString+GetBytes
- Fix ReadOnlySpan.Contains -> IndexOf
- Fix ReadOnlySequence.FirstSpan -> First.Span
- Fix pattern-matching unassigned enumerable
- Add System.Buffers package reference
- Add CultureInfo using
EncodingPolyfill, MemoryMarshalShim, KvpExtensions, ThrowHelper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant